QuaternaryDictionary.CreateViewBySecondaryIndex(string, TIndexKey, ISequencer) method¶
Defined in
Type: QuaternaryDictionaryReactiveList.Collections Assembly: ReactiveList.dll
Applies to
net11.0, net10.0, net47, net471, net472, net48, net481
Overloads¶
public SecondaryIndexReactiveView<TKey, TValue> CreateViewBySecondaryIndex<TIndexKey>(string indexName, TIndexKey key, ISequencer scheduler) where TIndexKey : notnullpublic SecondaryIndexReactiveView<TKey, TValue> CreateViewBySecondaryIndex<TIndexKey>(string indexName, TIndexKey key, ISequencer scheduler, int throttleMs) where TIndexKey : notnull
1. Overload¶
public SecondaryIndexReactiveView<TKey, TValue> CreateViewBySecondaryIndex<TIndexKey>(string indexName, TIndexKey key, ISequencer scheduler) where TIndexKey : notnull
View source (opens in a new tab)
Summary: Creates a reactive view filtered by a secondary index key.
Type parameters
| Name | Description |
|---|---|
TIndexKey | The type of the key used in the secondary index. |
Parameters
| Name | Type | Description |
|---|---|---|
indexName | string (opens in a new tab) | The name of the secondary index to filter by. |
key | TIndexKey | The key value to filter on. |
scheduler | ISequencer | The scheduler for dispatching updates. |
Returns: SecondaryIndexReactiveView
2. Overload¶
public SecondaryIndexReactiveView<TKey, TValue> CreateViewBySecondaryIndex<TIndexKey>(string indexName, TIndexKey key, ISequencer scheduler, int throttleMs) where TIndexKey : notnull
View source (opens in a new tab)
Summary: Creates a reactive view filtered by a secondary index key.
Type parameters
| Name | Description |
|---|---|
TIndexKey | The type of the key used in the secondary index. |
Parameters
| Name | Type | Description |
|---|---|---|
indexName | string (opens in a new tab) | The name of the secondary index to filter by. |
key | TIndexKey | The key value to filter on. |
scheduler | ISequencer | The scheduler for dispatching updates. |
throttleMs | int (opens in a new tab) | Throttle interval in milliseconds. Defaults to 50ms. |
Returns: SecondaryIndexReactiveView
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException (opens in a new tab) | Thrown when the named secondary index does not exist or has an incompatible type. |